﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using RoadTeam.Model;
using RoadTeam.Enums;

public partial class 增删改测试_UpdateDemo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        TbEvlutionText model = new TbEvlutionText();
        model.UniqueIdentifier = "20bb1e61dd5542bdb678ff84f13b3ef4";
        model.Name = "123123123123123123123123123";
        model.Code = "123123123123123123123123123";
        model.Remark = "123123123123123123123123123";
        TbEvlutionText.Update(model,GlobalConfig.ConnectionString);
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        SqlWhere where = new SqlWhere();
        where.SelectColumn = @"  Top 5 * ";
        DataTable dt = TbEvlutionText.Select(where,GlobalConfig.ConnectionString);
        foreach (DataRow dr in dt.Rows)
        {
            dr["Name"] = "1008600001";
            dr["Code"] = "1008600001";
        }
        TbEvlutionText.Update(dt, GlobalConfig.ConnectionString);
         dt = TbEvlutionText.Select(where, GlobalConfig.ConnectionString);
    }



    protected void Button3_Click(object sender, EventArgs e)
    {

    }
}